<template>
	<view class="page">
		<text class="nav_title">个人中心</text>
		<!-- 头像等信息 -->
		<Card></Card>
		<!-- 菜单 -->
		<Menu></Menu>
		<!-- 喜欢的音乐 -->
		<view class="favor total" @click="send">
			<u-icon name="heart-fill" size="35" color="#fff" class="favor-icon">
			</u-icon>
			<view class="favor-detail">
				<text class="favor-detail-like">我喜欢的音乐</text>
				<text class="favor-detail-txt">524首，已下载4首</text>
			</view>
		</view>

		<!-- 推荐歌单 -->
		<RecomMend></RecomMend>

	</view>
</template>

<script>
	import Card from '@/components/Card.vue';
	import RecomMend from '@/components/recommend.vue'
	import Menu from './Menu.vue';
	import UserDetail from '@/view/UserDetail/UserDetail.vue'

	import {
		_getLikeMusic,
	} from '@/http/mine.js'
	export default {
		components: {
			Card,
			Menu,
			RecomMend,
		},
		data() {
			return {
			};
		},
		methods: {
			//歌单详情
			send() {
				uni.navigateTo({
					url: '/pages/Mine/LikeSongs'
				})
				console.log('123');
			},

			

		}
	}
</script>

<style lang="scss" scoped>
	*{
		font-family: STXihei;
	}
	.total {
		background: #fff;
		margin: 35rpx 35rpx;
		border-radius: 25rpx;
	}

	.page {
		background-color: #f4f0f1;
	}

	.nav_title {
		display: inline-block;
		color: #211d1e;
		font-size: 35rpx;
		margin: 30rpx;
	}


	.favor {
		padding: 35rpx;
		display: flex;

		&-icon {
			width: 125rpx;
			height: 125rpx;
			border-radius: 25rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			background-color: #f2f2f2;
			box-shadow: 0px -5px 0px 0px rgba(0, 0, 0, .1);
		}

		&-detail {
			display: flex;
			flex-direction: column;
			justify-content: center;
			margin-left: 30rpx;

			&-like {
				margin-bottom: 15rpx;
				font-size: 35rpx;
			}

			&-txt {
				color: #ccc;
				font-size: 30rpx;
			}
		}
	}
</style>
